﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/DefaultWithLeft.Master" AutoEventWireup="true"
  CodeBehind="PromotionsPage.aspx.cs" Inherits="NguyenHoa.Web.Pages.PromotionsPage" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContentMain" runat="server">
  <dxdv:ASPxDataView ID="dvNews" runat="server" ClientInstanceName="dvNews" ColumnCount="1"
    Width="100%" EmptyDataText="<%$ Resources:Messages, ERR0058 %>" PagerAlign="Right"
    ItemSpacing="5px" PagerPanelSpacing="0px" BackColor="Transparent" 
    OnDataBound="dvNews_DataBound" RowPerPage="5">
    <PagerStyle>
      <Paddings PaddingRight="18px" PaddingTop="20px" />
    </PagerStyle>
    <Border BorderStyle="None"></Border>
      <ItemStyle BackColor="Transparent" Width="100%">
        <Paddings Padding="0px" />
        <Border BorderStyle="None" />
      </ItemStyle>
    <ItemTemplate>
      <div class="company_block clear">
        <div class="fleft p3">
          <a class="box_img" href="#">
            <img alt="" src='<%#Eval("ImagePath")%>'  width="138"  onclick="gotoLocalPage('PromotionsDetailPage.aspx?t=P&id=<%#Eval("Id") %>&tid=<%#Eval("CategoryId") %>')">
            </img>
          </a>
        </div>
        <h3>
          <a href='PromotionsDetailPage.aspx?t=P&id=<%#Eval("Id") %>&tid=<%#Eval("CategoryId") %>'>
            <%#Eval("Title") %>
          </a>
        </h3>
        <div>
          <div class="toolbar">
          	<cite>
              <abbr class="timedate">(<%#FormatDate((Eval("PostDate")))%></abbr>-
                <asp:Label CssClass="news_date" ID="ASPxLabel1" runat="server" Text="<%$ Resources:Strings, ViewCount%>">
                </asp:Label>
              <span class="views">:
                <%#Eval("ViewCount") %>) </span>
          	</cite>
          </div>
          <div class="text_content">
            <%#Eval("Summary")%></div>
          <a class="link_text" href='PromotionsDetailPage.aspx?t=P&id=<%#Eval("Id") %>&tid=<%#Eval("CategoryId") %>'>
            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Strings, Detail%>"></asp:Literal></a>
        </div>
      </div>
    </ItemTemplate>
    <Paddings PaddingBottom="2px" PaddingLeft="0px" PaddingTop="2px" PaddingRight="3px">
    </Paddings>
    <PagerSettings Position="Bottom">
      <Summary Position="Left"></Summary>
      <Summary Position="Right" Text="<%$ Resources:Strings, PagerText%>" />
      <AllButton>
        <Image Height="18px" Width="24px" />
      </AllButton>
      <FirstPageButton>
        <Image Height="18px" Width="22px" />
      </FirstPageButton>
      <LastPageButton>
        <Image Height="18px" Width="22px" />
      </LastPageButton>
      <NextPageButton>
        <Image Height="18px" Width="20px" />
      </NextPageButton>
      <PrevPageButton>
        <Image Height="18px" Width="20px" />
      </PrevPageButton>
    </PagerSettings>
  </dxdv:ASPxDataView>

  <script type="text/javascript" language="javascript">
    function gotoLocalPage(link) {
      window.location.href = link;
    }
  </script>

</asp:Content>
